package main;

import my_util.MyPriorityQueue;
import my_util.MyPriorityQueue_1;

import java.util.ArrayList;

public class Main_MyQueue {
    public static void main(String[] args) {
//        int []num={15,21,10,33,9,2,6,7,5,1,8,10};
//        ArrayList<Integer>al=new ArrayList<>();
//        for(int i:num){
//            al.add(i);
//        }
        MyPriorityQueue_1<Integer> queue=new MyPriorityQueue_1<Integer>();
        System.out.println(queue.size());
        System.out.println(queue.isEmpty());
        queue.enQueue(15);
        queue.enQueue(7);
        queue.enQueue(9);
        queue.enQueue(1);
        queue.enQueue(33);
        queue.enQueue(0);
        queue.enQueue(28);
        queue.enQueue(4);
        queue.enQueue(44);
        queue.enQueue(17);
        queue.enQueue(12);
        queue.enQueue(11);
        System.out.println(queue.isEmpty());
        while (!queue.isEmpty()){
            System.out.print(queue.deQueue()+" ");
        }
//        queue.enQueue(1);
//        System.out.println(queue.size());
//        System.out.println(queue.peek());
//        System.out.println((Integer)queue.deQueue());
//        System.out.println((Integer)queue.deQueue());
//        System.out.println((Integer)queue.deQueue());
//        System.out.println((Integer)queue.deQueue());
//        System.out.println((Integer)queue.deQueue());
//        System.out.println(queue.size());
//        System.out.println(queue.peek());
//        queue.enQueue(3);
//        queue.enQueue(4);
//        queue.enQueue(5);
//        queue.enQueue(6);
//        queue.enQueue(7);
//        queue.enQueue(8);
    }
}
